<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="/css/main/table.css"/>
<link rel="stylesheet" href="/css/main/page.css"/>
<link rel="stylesheet" href="/css/common/list.css"/>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-2.1.1.js"></script>
<script type="text/javascript" src="${ctx}/js/page.js"></script>
<script type="text/javascript" src="${ctx}/js/photo.js"></script>
<script type="text/javascript" src="${ctx}/js/person/person.js"></script>
<script type="text/javascript" src="${ctx}/plugin/layer-v1.9.2/layer/layer.js"></script>

<body>
<div>
    <div class="top-title">
        <span>人员列表 / Staff list</span>

    </div>
    <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer" role="grid"
           aria-describedby="dynamic-table_info">
        <thead>
        <tr role="row" style=" background: #CDD9D9;" class="tableHead">
        <#--<th width="100px"></th>-->
            <th width="150px">姓名</th>
            <th width="200px">登录名</th>
            <th width="150px">是否停用</th>
        <#--<th width="150px">密码</th>-->
            <th width="150px">所属角色</th>
            <th width="150px">操作</th>
        </tr>
        </thead>

        <tbody>
        <#list PersonArrayList as personList>
        <tr role="row" class="odd">
        <#--<th width="100px"><input type="checkbox"></th>-->
            <th width="150px">${personList.name!""}</th>
            <th width="150px">${personList.loginId!""}</th>
            <th width="150px">
                <#if personList.whetherLock == '1'>
                    <span style="color: red">是</span>
                <#--${personList.whetherLock!""}-->
                <#else >
                    <span style="color: #1ab394">否</span>
                </#if>

            </th>
        <#--<th width="150px">${personList.passWord!""}</th>-->
            <th width="150px">${personList.postCaption!""}</th>
            <th width="75px"><a onclick="personEdit(${personList.personId})">编辑</a>
            <#--&nbsp;&nbsp;&nbsp;<a onclick="personDel(${personList.personId})">删除</a>-->
            </th>
        </tr>
        </#list>
        </tbody>
    </table>
    <div class="row">
        <div class="page-info" id="table_info">
        <#--第${nowBegin}-${nowEnd}条，共${count}条-->
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    <#--new page({pageMain:"pagination",nowPage:${page!'1'},count:${count},pageSize:${pageSize!'10'},-->
    <#--url:"/admin/user",params:"?pageSize=${pageSize}&query=${query}",pakey:"page"});-->

    new tablePage(${page} ,${pageSize} ,${count?c}  , "${ctx}/personManage/personList?", "1=1");
    <#--new  tablePage(${page} ,${pageSize},${count},"${ctx}/homepage/getphotoListDetails?",getParams());-->

    <#--function getParams() {-->
    <#--var projectId = ${projectId};-->
    <#--return "projectId=" +projectId;-->
    <#--}-->
    function lookDetails() {
        window.open("${ctx}/personManage/personList");
    }
</script>
</html>
